package com.hice.demo.sbdbra.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by barton on 16-1-30.
 * 1.具体配置项在application.yml里边
 * 2.测试redis需要先在本机启动redis-server服务,redis链接:http://redis.io/
 * 3.测试redis需要将pom.xml的依赖和RedisConfigTest和RedisConfig的注释释放
 */
@Component
public class RedisConfig {

    private StringRedisTemplate stringRedisTemplate;

    @Autowired
    public RedisConfig(StringRedisTemplate stringRedisTemplate) {

        this.stringRedisTemplate = stringRedisTemplate;
    }

}
